<html>
<head>
    <meta charset="UTF-8">
    <title>投参吉林“吉林·长白山人参”招商引资平台</title>
    <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
    <script src="js/jquery.js"></script>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<script src="http://h5.jlrbyy.cn/wxjson/js/wx-rs.js?v=1.03"  type="text/javascript"></script> 
<link rel="stylesheet" type="text/css" href="css/base.css?v=1.8">
<link rel="stylesheet" type="text/css" href="css/style.css?v=1.8">
    <link rel="stylesheet" href="swiper/swiper-bundle.min.css" />
    <script type="text/javascript">
        document.documentElement.style.fontSize = document.documentElement.clientWidth / 750*100 + 'px';
    </script>
        <style>
            body {
                background-color: #fff;
                margin: 0;
            }
            .content{
                background-color: #fff;
            }
            #editor{
                color:gray;
            }
        </style>
</head>
<body>
<div class="container">
    <div class="header_item">
        <div class="header_top_item">
            <div id="item-title"></div>
            <div id="jj">
                <div id="ly"></div>
                <div id="sj"></div>
            </div>
        </div>
    </div>
    <div id="content" class="content_item">

    </div>
    <div id="editor"></div>
</div>
<script>
    function getUrlParam(name) {
        const urlParams = new URLSearchParams(window.location.search);
        return urlParams.get(name);
    }
    $.ajax({
        type: "get",
        url: 'https://www.cailianxinwen.com/app/notice/jishihuanNewsDetail?newsid='+getUrlParam('id'),
        dataType: "json",
        //jsonp: "jsoncallback",
        success: function (json) {
            $('#item-title').html(json.title)
            var content = json.content.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block;"')

            $('#content').html(content)
            $('#ly').html('信息来源：'+json.source)
            $('#sj').html('时间：'+json.edittime)
            $('#editor').html('责编：'+json.dutyeditor+'<br>二审：'+json.check2+'<br>终审：'+json.check3)
            $('video').width('100%')
            $(document).ready(function() {
    document.title = json.title;
                    });
            console.log(json)
        },
        error: function (err) {
            console.log(err.statusText)
            if(err.statusText=='error')
            {
                alert(err.statusText)
            }
        }
    });

</script>

</body>
</html>